﻿using System;
using System.Collections.Generic;
using Inscriptionem.Models.Blog.Enums;

namespace Inscriptionem.Models.Blog
{
    public class Article
    {
        public Article()
        {
            Categories = new List<ORM.Category>();
        }

        public ArticleType Type { get; set; }
        public int ID { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public bool IsCommentable { get; set; }
        public bool IsSectionPinned { get; set; }
        public bool IsCategoryPinned { get; set; }
        public int ViewCount { get; set; }
        public DateTime CreatedDate { get; set; }

        public List<ORM.Category> Categories { get; protected set; }
        public int CommentsCount { get; set; }


        #region Post/Page
        public IEnumerable<ORM.Comment> Comments { get; set; }
        public IEnumerable<ORM.Tag> Tags { get; set; }
        #endregion
    }
}